{% extends "index_base.html" %}
{% load pagination_tags %}


{% block content %}
{{ block.super }}

<div class="row">
	<div class="span10" >
		<div class="span9"style="border:1px solid #DFDFDF;background-color:#FAFAFA;">
			<div class="span9" >
				<span><h3>{{ topicdata.subject }}</h3></span>
			</div>
			<div class="offset6 span4">
				<span class="label label-info">回复:{{ topicdata.replies }}</span>
				<span class="label label-info">浏览:{{ topicdata.views }}</span>
			</div>
			<!--<div class="span9">
				<a href="javascript:;" onclick="modthreads(3, 'delete')">删除主题</a><span class="">|</span>
				<a href="javascript:;" onclick="modthreads(1, 'stick')">置顶</a><span class="">|</span>
				<a href="javascript:;" onclick="modthreads(1, 'highlight')">高亮</a><span class="">|</span>
				<a href="javascript:;" onclick="modthreads(1, 'digest')">精华</a><span class="">|</span>
				<a href="javascript:;" onclick="modaction('stamp')">图章</a><span class="">|</span>
				<a href="javascript:;" onclick="modthreads(4)">关闭</a><span class="">|</span>
				<a href="javascript:;" onclick="modthreads(2, 'move')">移动</a><span class="">|</span>
				<a href="javascript:;" onclick="modaction('warn', '1')">警告</a><span class="">|</span>
				<a href="javascript:;" onclick="modaction('banpost', '1')">屏蔽</a><span class="">|</span>
				<a href="javascript:;" onclick="showWindow('mods', 'forum.php?mod=tag&amp;op=manage&amp;tid=1', 'get', 0)">标签</a><span class="pipe" style="visibility: hidden; ">|</span>
			</div>-->
		</div>
	</div>
	
	{% autopaginate postlist 10 %}
	{% for postdata in postlist %}
	<div class="span10" style="height:320px;">
				<div class="span2" style="border:1px solid #DFDFDF;background-color:#FAFAFA;height:100%;">
					<ul class="unstyled">
						<li>
							<div class="">
								<a>
									<img class="icon" username="{{ postdata.author_name }}" src="http://tb.himg.baidu.com/sys/portrait/item/dc676162633734303337366322" width="80" height="80">
								</a>
							</div>
						</li>
						<li>
							<a>{{ postdata.author_name }}</a>
						</li>
						<li class="">
							<div class="">洞玄之境</div>
							<div class="">7</div>
						</li>
					</ul>
				</div>
					
				<div class="span7" style="border:1px solid #DFDFDF;background-color:#FAFAFA;height:100%;">
					<div class="span7" style="height:10%;">
						<span>{{ postdata.createtime }}</span>
					</div>
					<div class="span7" style="height:80%;">
						<p>{{ postdata.message }}</p>
					</div>
					<div class="span2 offset5" style="height:10%;">
						<span class="">
							{% if postdata.first %} 
								楼主
							{% else %} 
								{{ postdata.position }} 楼
							{% endif %}
						</span>
					</div>
				</div>
				<hr class="span9"/>			
	</div>
	{% endfor %}
	<div class="span10">
		<div class="span9">
			{% paginate %} 
		</div>
	</div>
	
	<div class="span10">
		<hr class="span9"/>
		{% include 'bbs/quick_new_post.html' %}
	</div>
	
</div>


{% endblock %}